<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WuHenBot - 登录</title>
    <link rel="stylesheet" href="./css/index.css">
    <link href="./css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <!-- 背景装饰元素 -->
    <div class="bg-decoration"></div>

    <!-- 登录卡片 -->
    <div class="login-card">
        <div class="game-logo">
            <i class="fa fa-book"></i>
            <h1>WuHenBot</h1>
        </div>

        <form id="loginForm" class="login-form">
            <div class="form-group">
                <label for="username">
                    <i class="fa fa-user"></i>
                </label>
                <input type="text" id="username" placeholder="用户名" required>
            </div>

            <div class="form-group">
                <label for="password">
                    <i class="fa fa-lock"></i>
                </label>
                <input type="password" id="password" placeholder="密码" required>
                <button type="button" class="toggle-password">
                    <i class="fa fa-eye"></i>
                </button>
            </div>

            <div class="form-options">
                <label class="remember-me">
                    <input type="checkbox">
                    <span>记住我</span>
                </label>
                <a href="#" class="forgot-password">忘记密码?</a>
            </div>

            <button type="submit" class="login-btn">登录</button>
        </form>

        <div class="register-prompt">
            <p>还没有账号? <a href="#" id="showRegister">立即注册</a></p>
        </div>
    </div>

    <!-- 注册卡片 (默认隐藏) -->
    <div class="register-card hidden">
        <div class="game-logo">
            <i class="fa fa-book"></i>
            <h1>幻境文字</h1>
        </div>

        <form id="registerForm" class="register-form">
            <div class="form-group">
                <label for="regUsername">
                    <i class="fa fa-user-plus"></i>
                </label>
                <input type="text" id="regUsername" placeholder="创建用户名" required>
            </div>


            <div class="form-group">
                <label for="regPassword">
                    <i class="fa fa-lock"></i>
                </label>
                <input type="password" id="regPassword" placeholder="设置密码" required>
                <button type="button" class="toggle-password">
                    <i class="fa fa-eye"></i>
                </button>
            </div>

            <button type="submit" class="register-btn" >注册</button>
        </form>

        <div class="login-prompt">
            <p>已有账号? <a href="#" id="showLogin">返回登录</a></p>
        </div>
    </div>
</div>

<!-- 消息提示框 -->
<div id="messageBox" class="message-box hidden"></div>

<script src="./js/index.js"></script>
</body>
</html>